<?php
/**
 * Created by Maxotm.
 * User: tuyt
 * Date: 2019/5/31
 */

namespace App\Admin\Controllers;

use App\Http\Controllers\Controller;
use Encore\Admin\Form;
use Encore\Admin\Layout\Content;
use Encore\Admin\Form\Row;
class WechatController extends Controller
{
    public function index(Content $content)
    {

         $content
            ->header('Wechat')
            ->description('微信管理');
        $app = app('wechat.official_account');
        $list = $app->menu->list();
/*        $content->row(function(Row $row)  {
            $row->column(4, '微信菜单');
            $row->column(8, '');
        });*/
dd($list);
        $content->body($list);
        return $content;
    }
}